import com.aliyun.oss.OSSClient;

/**
 * @author mysens
 * @date 18-1-2 下午1:46
 */
public class OSSConfig {

    private  String sourceAccessId;
    private  String sourceAccessKey;
    private  String sourceEndpoint;
    private static String sourceBucket;


    public String getSourceAccessId() {
        return sourceAccessId;
    }

    public void setSourceAccessId(String sourceAccessId) {
        this.sourceAccessId = sourceAccessId;
    }


    public String getSourceAccessKey() {
        return sourceAccessKey;
    }

    public void setSourceAccessKey(String sourceAccessKey) {
        this.sourceAccessKey = sourceAccessKey;
    }


    public String getSourceEndpoint() {
        return sourceEndpoint;
    }

    public void setSourceEndpoint(String sourceEndpoint) {
        this.sourceEndpoint = sourceEndpoint;
    }


    public static String getSourceBucket() {
        return sourceBucket;
    }

    public static void setSourceBucket(String sourceBucket) {
        OSSConfig.sourceBucket = sourceBucket;
    }


    public static OSSClient createSourceClient(){
        return new OSSClient(
                "http://oss-cn-shanghai.aliyuncs.com",
                "LTAI4FoTNVkyGJTc",
                "Ql0W6ca9jFFWUfHamzQqlbBH4lCiMw");
    }
    public static OSSClient getImageOSSClient(){
        return new OSSClient("http://oss-cn-hangzhou.aliyuncs.com", "LTAIcOdfGwUKdrhK",
                "YP70aQxMWwPRkOumQ47QbJINgL6NhH");
        //OSSClient("https://mlxx-spider.oss-cn-shanghai.aliyuncs.com/", "LTAIRmEsyfsZKQss", "LdBNwZVqwQepFN0pZT2RnFM88KctVY");
    }
}
